export default {
    props: {
        dataList: {
            type: Array,
            default: () => []
			/**
			 * 
			 数据格式说明：[{
					 {
						url: 'https://cdn.uviewui.com/uview/resources/video.mp4',
						title: '昨夜星辰昨夜风，画楼西畔桂堂东',
						poster: 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
						type: 'video'
					}, {
						url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
						title: '身无彩凤双飞翼，心有灵犀一点通',
						type: 'image'
					}, {
						url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
						title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
					}
				}]
				*/
        },
		dataListDictKeyName: {
			type: String,
			default: 'dict'
		},
		dataListFileSrcKeyName: {
			type: String,
			default: 'src'
		},
		dataListFilePosterKeyName: {
			type: String,
			default: 'poster'
		},
		// 是否显示标题，要求数组对象中有title属性
		showTitle: {
			type: Boolean,
			default: false,
		},
		dictOptions: {
				type: Array,
				default: () => []
		},
		dictKey: {
				type: String,
				default: 'value'
		},
		dictTitle: {
				type: String,
				default: 'title'
		},
		// 组件高度
		height: {
			type: [String, Number],
			default: 130
		},
		// 是否自动切换
		autoplay: {
			type: Boolean,
			default: true
		},
		// 滑块切换过程所需时间
		duration: {
			type: [String, Number],
			default: 300
		},
		// 是否加载中
		loading: {
			type: Boolean,
			default: false
		},
		showTabsBar: {
			type: Boolean,
			default: true
		},
		tabsBarWidth: {
			type: [String, Number]
		},
		showPageSummary: {
			type: Boolean,
			default: true
		},
		mode: {
			type: String,
			default: 'common'
		},
		// 图片的裁剪模式
		imgMode: {
		    type: String,
		    default: 'aspectFill'
		},
		// 图片是否可以预览
		ifPreviewImage: {
		    type: Boolean,
		    default: true
		},
	}
}
